package com.huangbc.gateway.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashSet;
import java.util.Set;
import java.util.TreeSet;
import java.util.concurrent.*;

/**
 * @Author:Derek.huang on 2024/4/12 10:13
 */

@RestController
public class TestController {

    @GetMapping("/test")
    public String test() {
        return "cloud-gateway";
    }


    public static void main(String[] args) {

        Set hashset = new HashSet(18);
        Set treeset = new TreeSet();
        new ThreadPoolExecutor(8, 10, 10,
                TimeUnit.MINUTES, new ArrayBlockingQueue<>(18),
                new ThreadFactory() {
            @Override
            public Thread newThread(Runnable r) {
                return null;
            }
        }, new RejectedExecutionHandler() {
            @Override
            public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) {

            }
        });


    }
}

